package com.lingshi.shopping.constant;

import cn.hutool.core.util.StrUtil;

public class RedisKey {
    public static final String CATEGORIES = "categories";
    public static final String REGISTER_KEY = "register:{}";
    public static final String LOGIN_KEY = "login:{}";

    //购物车key  前缀：用户id  list集合
    public static final String SHOPPING_CART_KEY = "shopping_cart:{}";

    public static final String SEC_KILL_GOODS = "sec_kill_goods";

    public static void main(String[] args) {

        String format = StrUtil.format(REGISTER_KEY, "123456");
        System.out.println(format);

    }
}
